
package cn.webrx;


public class T1 {
    public static void main(String[] args) {
        //整数
        byte n1 = 1; // 1字节 127 - -128
        short n2 = 2; //2字节
        int n3 = 3;//4字节
        long n4 = 4;//8字节
        System.out.println(n1);
        System.out.println(n2);
        System.out.println(n3);
        System.out.println(n4);
        byte n5 = 127;

        int a = 6;
        byte b = (byte)a; //强制数据类型转换

        int c = b;//低精度的数据类型默认转换


    }
}
